/**
 * Created by Veronica on 2017/3/23.
 */
package app12;
public enum Weekend {
    SATURDAY,
    SUNDAY;

    private Weekend (){
    }

    public String toString() {
        return "Fun day" + (this.ordinal() + 1);
    }

    public static void main(String[] args) {
        //private class name
        System.out.println(
                Weekend.SATURDAY.getClass().getName()
        );
        for (Weekend w : Weekend.values()) {
            System.out.println(w.name() + ":" + w);
        }
    }

}
